package com.mzkj.wanjulaile.mobile.api.modules.address.mapper;

import com.mzkj.wanjulaile.mobile.api.modules.address.entity.Address;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by wangxw on 16/7/26.
 */
@Repository
public interface AddressMapper {

    List<Address> getListByAccountId(String accountId);

    Address getDefaultAddress(String accountId);

    int updateDefault(Map<String, Object> map);

    Address get(String id);

    List<Address> findList(Address address);

    void delete(Address address);

    void insert(Address address);

    void update(Address address);

    int setUnDefault(String accountId);
}
